package examples;

import helpers.IdUniqueHelper;

import java.util.ArrayList;

import com.google.apphosting.api.search.DocumentPb.FieldValue.Geo;
import com.googlecode.objectify.Key;

import admin.data.GeoData;
import models.GeoModel;

public class CreateGeo {
	public static ArrayList<GeoModel> createGeo() {
		ArrayList<GeoModel> geos = new ArrayList<GeoModel>();
		GeoData geoData = new GeoData();
		GeoModel geo = new GeoModel();
		
		//Create example
		geo = new GeoModel();
		geo.setGeoId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Hà nội");
		geo.setParentId("");
		geo.setType("city");
		geoData.insert(geo);
		geos.add(geo);
		
		/*//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("TP Hồ Chí Minh");
		geo.setParentId("");
		geo.setType("city");
		geoData.insert(geo);
		geos.add(geo);
		
		//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Hai Bà Trưng");
		geo.setParentId("");
		geo.setType("district");
		geoData.insert(geo);
		geos.add(geo);
		
		//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Hoàn kiếm");
		geo.setParentId("");
		geo.setType("district");
		geoData.insert(geo);
		geos.add(geo);
		
		//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Thanh Xuân");
		geo.setParentId("");
		geo.setType("district");
		geoData.insert(geo);
		geos.add(geo);
		
		//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Cầu Giấy");
		geo.setParentId("");
		geo.setType("district");
		geoData.insert(geo);
		geos.add(geo);
		
		//Create example
		geo = new GeoModel();
		geo.setId(IdUniqueHelper.getId());
		geo.setLevel(0);
		geo.setName("Quận 1");
		geo.setParentId("");
		geo.setType("district");
		geoData.insert(geo);
		geos.add(geo);*/
		
		return geos;
	}
	
	
}
